# 分别输入1,2；1,0；1,“a” 三组数字比较运算结果
x, y = eval(input("请输入两个数字："))
try:
    z = x / y
    print("x = {0},y = {1}".format(x, y))
    print("z = x / y = {0}".format(z))
except TypeError as te:
    print("数据类型错误！{0}".format(te))
except ZeroDivisionError as zde:
    print("0不能作为除数！{0}".format(zde))
except:
    print("程序发生异常")
else:
    print("程序正常结束")
